package tk.deep.domain.biz.user;

import tk.deep.domain.BizEntity;

import java.util.Date;

/**
 * Biz user define
 */
public class User extends BizEntity {

    // Nick name
    private String nickName;
    // Password
    private String password;
    // Payment password
    private String payPasswd;
    // OAuth code (for third party union login)
    private String oathCode;
    // OAth type (maybe google facebook etc.)
    private byte oauthType;
    // Status of the user
    private byte status;
    // Account of the user
    private Account account;


    // Extends information
    // Is the user is male or not,
    // true means man, false means female, null means UNKNOWN.
    private Boolean male;

    // Photo of the user
    private String img;


    // email box of the user
    private String email;

    // Card number of the user.
    private String cardNum;

    // Last login time
    public Date lastLoginTime;

    // Last login ip address
    public String lastLoginIP;

    // The source of the user's introducer
    public String introducer;

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public String getPayPasswd() {
        return payPasswd;
    }

    public void setPayPasswd(String payPasswd) {
        this.payPasswd = payPasswd;
    }

    public String getOathCode() {
        return oathCode;
    }

    public void setOathCode(String oathCode) {
        this.oathCode = oathCode;
    }

    public byte getOauthType() {
        return oauthType;
    }

    public void setOauthType(byte oauthType) {
        this.oauthType = oauthType;
    }

    public byte getStatus() {
        return status;
    }

    public void setStatus(byte status) {
        this.status = status;
    }

    public Account getAccount() {
        return account;
    }

    public void setAccount(Account account) {
        this.account = account;
    }

    public Boolean getMale() {
        return male;
    }

    public void setMale(Boolean male) {
        this.male = male;
    }

    public String getImg() {
        return img;
    }

    public void setImg(String img) {
        this.img = img;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getCardNum() {
        return cardNum;
    }

    public void setCardNum(String cardNum) {
        this.cardNum = cardNum;
    }

    public Date getLastLoginTime() {
        return lastLoginTime;
    }

    public void setLastLoginTime(Date lastLoginTime) {
        this.lastLoginTime = lastLoginTime;
    }

    public String getLastLoginIP() {
        return lastLoginIP;
    }

    public void setLastLoginIP(String lastLoginIP) {
        this.lastLoginIP = lastLoginIP;
    }

    public String getIntroducer() {
        return introducer;
    }

    public void setIntroducer(String introducer) {
        this.introducer = introducer;
    }
}
